package com.zf.yichat.mapper;

import com.zf.yichat.base.FsMapper;
import com.zf.yichat.model.UserIntegralDetail;
import org.apache.ibatis.annotations.Param;

public interface UserIntegralDetailMapper extends FsMapper<UserIntegralDetail> {
    Integer sumShare(@Param("userId") Long userId);

    /**
     * 查询当日玩游戏获取的积分值
     * @param userId
     * @return
     */
    Integer queryUserIntegralToday(@Param("userId") Long userId);

    /**
     * 查询用户玩游戏获取积分的最近一次是否查过三分钟
     * @param userId
     * @return
     */
    Integer queryUserIntegralTimeDifference(@Param("userId") Long userId);

}